<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>

<div class="col-mb-12 col-8" id="main" role="main">
    <div class="content">
        <h3 class="archive-title" style="margin: 20px;box-shadow: 0 0 5px 5px #eee;
        background: #fff;border-radius: 10px;height: 50px;line-height: 50px;padding-left: 20px;
color: #484848"><?php $this->archiveTitle(array(
                'category' => _t('分类 %s 下的文章'),
                'search' => _t('包含关键字 %s 的文章'),
                'tag' => _t('标签 %s 下的文章'),
                'author' => _t('%s 发布的文章')
            ), '', ''); ?></h3>
        <?php if ($this->have()): ?>
        <ul>
            <?php while ($this->next()): ?>

                <li class="card-content">
                    <dl>
                        <dd>
                            <div class="card-content-bg">

                                <div class="card-content-info">
                                    作者：<?php $this->author(); ?></br>
                                    分类：<?php $this->category(',', true, 'none'); ?></br>
                                    标签：<?php $this->tags(',', true, 'none'); ?></br>
                                    时间：<?php $this->date('Y-m-d H:i'); ?>
                                </div>
                                <div class="card-content-bar">
                                    <div class="card-content-bar-title">
                                        <?php $this->title() ?>
                                    </div>
                                </div>
                            </div>
                        </dd>
                        <dd class="card-content-content"><span><?php $this->excerpt(220, ' ...'); ?></span>
                        </dd>
                        <dd class="card-content-option">
                            <div style="color: #B2B2B2;border-top: 2px solid #eee;width: 100%">
                                <ul class="card-content-option-left"
                                    style="float: left;width: 50%;height: 53px;line-height: 53px">
                                    <a href="<?php $this->permalink(); ?>#comment-1"><?php $this->commentsNum(); ?>
                                        条评论</a>
                                </ul>
                                <ul class="card-content-option-right"
                                    style="float: left;width: 49%;border-left: 2px solid #eee;height: 53px;line-height: 53px">
                                    <a href="<?php $this->permalink() ?>">阅读全文</a>
                                </ul>
                            </div>
                        </dd>
                    </dl>
                </li>

            <?php endwhile; ?>
        </ul>
        <?php else: ?>
            <article class="post">
                <h2 class="post-title"><?php _e('没有找到内容'); ?></h2>
            </article>
        <?php endif; ?>

        <!--        --><?php //$this->pageNav('&laquo; 前一页', '后一页 &raquo;'); ?>
    </div><!-- end #main -->
</div>

<!--	--><?php //$this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>
